package com.wutianyi.datastore;

/**
 * @author hanjiewu
 * 
 */
public class Query
{

    private DataStoreServices dataStoreServices;

    private String kind;
    private String key;

    public Query(String kind)
    {
        this(kind, null);
    }

    public Query(String kind, String key)
    {
        this.kind = kind;
        this.key = key;
    }

    public Query(Key key)
    {
        this(key.getKind(), key.getKey());
    }

    public String getKind()
    {
        return kind;
    }

    public void setKind(String kind)
    {
        this.kind = kind;
    }

    public String getKey()
    {
        return key;
    }

    public void setKey(String key)
    {
        this.key = key;
    }

    public DataStoreServices getDataStoreServices()
    {
        return dataStoreServices;
    }

    public void setDataStoreServices(DataStoreServices dataStoreServices)
    {
        this.dataStoreServices = dataStoreServices;
    }

}
